﻿//#define TEST_SDK

#if UNITY_EDITOR && !TEST_SDK

using Cysharp.Threading.Tasks;
using KuiHuaBaoDian.SDK.Serializable;

namespace KuiHuaBaoDian.SDK {

    public static partial class API {

        private partial class Implementation {

            public UniTask InitializeRewardedAD(RewardedADSetting _) {
                return UniTask.CompletedTask;
            }

            public UniTask<IAPI.IRewardedADResult> ShowRewardedAD(System.Action<IAPI.IRewardedADResult> onLoad = null) {
                return UniTask.FromResult<IAPI.IRewardedADResult>(new RewardedADResult {
                    Count = 1,
                    State = true,
                });
            }
        }
    }
}
#endif